 <?php
       ini_set('max_execution_time', 300);   
  
  // whrend Setup nur Fehlermeldungen anzeigen
  //error_reporting (E_ERROR);  
  error_reporting (E_ALL); 

  
  require_once "../framework.php"; 
         
      
   
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>snapol Setup, please wait...</title>
<link rel="stylesheet" type="text/css" href="my.css">
</head>
<body>
<p><img src="/snapol/snapol.jpg" width="199" height="100" /></p>
<h1>snapol Setup, please wait...</h1>
  
   <?php
  
               $db = new db();
  $db->dbConnect();
     
     
  $install = new install();
  
  // Abfrage, ob Remote Install
 /* $modus = $_REQUEST['modus'];
  
  // falls Setup Modus, erstellen des Config File
  if ($modus == "setup") {
    $install->createConfigFile();
  }  */
  
  
  
  // Zip extrahieren
 // $install->startLocalInstall();
  
  $install->createFolderStructure();
  $install->createProjectConfigFile();  
  
  
  // Zip extrahieren
  /*$zip = new zip();
  $zip->zipExtract("/install/snapol.zip", "/"); */
  //$install->startLocalInstall();  
  
  
  
   //$install = new install();
//  $install->startLocalInstall();
  $install->startInstall();
  
  
  echo '<p><b>Setup abgeschlossen. <a href="/">Weiter</a></b></p>';    

?>


</body>
</html>

